package org.itboys.mobile.dto;

import org.itboys.mobile.dto.common.MobileBaseDto;

import java.util.List;

/**
 * Created by zhangyang on 2018/1/8.
 * 圣代_社区动态_dto:微信圈/本地爱购/达人试用
 */
public class SundayCommunityDynamicDto extends MobileBaseDto{

    private Integer type;//类别:1-微信圈,2-本地爱购,3-达人试用,4-特殊关注,5-个人中心
    private Long memberId;//用户id
    private String memberNickName;//用户昵称
    private String memberImage;//用户头像
    private String time;//创建时间
    private List<SundayCommunityDynamicProductDto> products;//商品list
    private Long praiseCount;//点赞数
    private Long commentCount;//评论数

    //本地爱购属性
    private String areaName;//地区名称

    //达人试用属性
    private String content;//试用内容
    private List<String> images;//试用图片

    private Integer isPraise;//是否点赞:1-点过赞,0-没有点过
    private Integer isFollow;//是否关注:1-已关注,0-未关注

    //评论数据字段
    private Long commentMainId;//评论实体id

    public SundayCommunityDynamicDto() {
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberNickName() {
        return memberNickName;
    }

    public void setMemberNickName(String memberNickName) {
        this.memberNickName = memberNickName;
    }

    public String getMemberImage() {
        return memberImage;
    }

    public void setMemberImage(String memberImage) {
        this.memberImage = memberImage;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public List<SundayCommunityDynamicProductDto> getProducts() {
        return products;
    }

    public void setProducts(List<SundayCommunityDynamicProductDto> products) {
        this.products = products;
    }

    public Long getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(Long praiseCount) {
        this.praiseCount = praiseCount;
    }

    public Long getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Long commentCount) {
        this.commentCount = commentCount;
    }

    public Integer getIsPraise() {
        return isPraise;
    }

    public void setIsPraise(Integer isPraise) {
        this.isPraise = isPraise;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Integer getIsFollow() {
        return isFollow;
    }

    public void setIsFollow(Integer isFollow) {
        this.isFollow = isFollow;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public Long getCommentMainId() {
        return commentMainId;
    }

    public void setCommentMainId(Long commentMainId) {
        this.commentMainId = commentMainId;
    }

    public String getTypeStr(){
        String typeStr = "";
        if(type == null){
            return typeStr;
        }
        switch (type){
            case 1:
                typeStr = "微信圈";
                break;
            case 2:
                typeStr = "达人试用";
                break;
            case 3:
                typeStr = "本地爱购";
                break;
            default:
                break;
        }
        return typeStr;
    }

    public String getInfo(){
        return "特殊字段说明:areaName:地区名称,content:试用内容,images:试用图片,isPraise:是否点赞:1-点过赞,0-没有点过,isFollow:是否关注:1-已关注,0-未关注";
    }
}
